Integral of trigonometric functions